<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2021/10/9
  Time: 19:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <link rel="StyleSheet" href="css/jpetstore.css" type="text/css"
          media="screen"/>
    <title>欢迎注册</title>
    <style>
        .login {
            position: absolute;
            left: 63%;
            top: 30%;
        }

        .body {
            background-image: url(../../img/img2.jpg);
            background-size: auto auto;
            background-repeat: no-repeat;
        }

    </style>
</head>
<body style="background-image: url(${path}/img/img2.jpg); background-size: auto auto ;background-repeat: no-repeat">
<form action="register" class="login" method="post" onclick="return check(this)">
    <table style="alignment: center">
        <tr>
            <td>用户名:</td>
            <td><input type="text" name="username"/></td>
            <td style="color: red">
                ${requestScope.usernameMsg}
            </td>
        </tr>
        <tr>
            <td>密 码:</td>
            <td><input type="password" name="password"/></td>
            <td style="color: red">
                ${requestScope.passwordMsg}
            </td>
        </tr>
        <tr>
            <td>确认密码:</td>
            <td><input type="password" name="password1"/></td>
            <td style="color: red">
                ${requestScope.passwordAgainMsg}
            </td>
        </tr>
        <tr>
            <td>性 别:</td>
            <td><input type="radio" name="gender" value="male"/>男
                <input type="radio" name="gender" value="female"/>女
            </td>
        </tr>
        <tr>
            <td>年 龄:</td>
            <td>
                <input type="text" name="age">
            </td>
            <td style="color: red">
                ${requestScope.ageMsg}
            </td>
        </tr>
        <tr>
            <td>邮箱:</td>
            <td><input type="text" name="email"></td>
        </tr>
        <tr>
            <td></td>
            <td align="right"><input type="submit" value="完成"></td>
        </tr>
    </table>
</form>
</body>
</html>
